package com.cqc.lite.service.impl;

import com.cqc.lite.dao.SysLogDao;
import com.cqc.lite.domain.SysLog;
import com.cqc.lite.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SysLogServiceImpl implements SysLogService {

    private final SysLogDao sysLogDao;
    @Autowired
    public SysLogServiceImpl(SysLogDao sysLogDao){
        this.sysLogDao=sysLogDao;
    }


    @Override
    public void save(SysLog sysLog) {
        sysLogDao.save(sysLog);
    }

    @Override
    public List<SysLog> findAll() {
        return sysLogDao.findAll();
    }

    @Override
    public List<SysLog> findAllByPage(int offset, int pageSize) {
        return sysLogDao.findAllByPage(offset,pageSize);
    }

    @Override
    public int findCount() {
        return sysLogDao.findCount();
    }
}
